package com.xiaohe.qd.util;
 
/**
 * 多线程实现4个窗口卖100张票
 * @author peter
 *
 */
public class TestTicket {
 
	public static void main(String[] args) {
		TicketRunnable tr=new TicketRunnable();
		//四个线程对应四个窗口
		Thread t1=new Thread(tr, "窗口A");
		Thread t2=new Thread(tr, "窗口B");
		Thread t3=new Thread(tr, "窗口C");
		Thread t4=new Thread(tr, "窗口D");
		
		t1.start();
		t2.start();
		t3.start();
		t4.start();
	}
}
